package com.wx.service.impl;

import com.wx.dao.CompanyDao;
import com.wx.model.CompanyModel;
import com.wx.service.ICompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class ICompanyServiceImpl implements ICompanyService {
    @Autowired
    CompanyDao companyDao;

    @Override
    public CompanyModel findAll() {
        CompanyModel list=companyDao.findAll();
        return list;
    }

    @Override
    public CompanyModel findById(CompanyModel companyModel) {
        return companyDao.findById(companyModel);
    }

    @Override
    public int update(CompanyModel companyModel) {
        return companyDao.update(companyModel);
    }
}
